home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / UIFlow 1.0.1 / UIFlow Source / Kevin / spvreader.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-23  |  1.2 KB  |  70 lines  |  [TEXT/????]

  1.  
  2. /*
  3.  
  4. This program will read an input file for multiflow off the network and
  5. write the file out to a file named spv.in. Then Dr. S. P. Vankas subroutine
  6. is called. This subroutine reads in the the spv.in file and generates an
  7. output file called spv.out, and returns. Then the routine to convert the
  8. vset hdf file to a raster image is called, and the results are shiped back
  9. to CFDFront.
  10.  
  11. cc -I/usr/local/apps/dtm/include main.c /usr/local/apps/dtm/lib/libdtm.a -lnet
  12.     Thomas Redman
  13. */
  14.  
  15.  
  16. #define MAC
  17. #include <stdio.h>
  18. #pragma segment conv
  19. #include <fcntl.h>
  20.  
  21. #ifdef MAC
  22. #define malloc NewPtr
  23. #define free DisposePtr
  24. #endif
  25.  
  26. /* dtm stuff. */
  27. int   inport, outport;
  28. FILE *     fptest;
  29. int     xsize;
  30. extern void UIFLOW();
  31.  
  32. /* flags. */
  33. int flags;
  34. #define dtm 1
  35. #define dots 2
  36. #define DFR8 4 
  37. #define TESTFILE "test.out"
  38.  
  39. extern void ShowL__FPc(char*);
  40. extern short StopKey__Fv(void);
  41. extern short SetStop__Fv(void);
  42.  
  43. void SHOWLINE(char * msg)
  44.     {
  45.     ShowL__FPc(msg);
  46.     }
  47.  
  48. short STOPKEY(void)
  49.     {
  50.     short i;
  51.     i = StopKey__Fv();
  52.     return i;
  53.     }
  54.  
  55. void ABORTC(void)
  56.     {
  57.     SetStop__Fv();
  58.     return;
  59.     }
  60.  
  61. int RunSpv (char * /*dfFileName*/)
  62. {
  63. /*    extern int ConvertVSet2Raster(); */
  64.     
  65.     /* call the uiflow stuff. */
  66.     UIFLOW ();
  67. /*    ConvertVSet2Raster (dfFileName); */
  68.     return 0;
  69. }
  70.